package com.aluka.nirvana.framework.datasource.model;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@ConfigurationProperties(prefix = "nirvana.database.datasource")
public class DataSourceWrap {
    private String name;
    private String url;
    private String username;
    private String password;
    private String driverClassName;
    /**
     * mapper.xml配置文件地址
     */
    private String mapperLocations;
    /**
     * mapper.java文件包路径
     */

    private String mapperPackages;
    /**
     * jpa 实体包路径
     */

    private String entityPackages;
    /**
     * jpa Repository包路径
     */
    private String repositoryPackages;


    private Integer initialSize;
    private Integer maxActive;
    private Integer minIdle;
    private Integer maxWait;
    private Boolean poolPreparedStatements;
    private Integer maxOpenPreparedStatements;
    private String validationQuery;
    private Boolean testOnBorrow;
    private Boolean testOnReturn;
    private Boolean testWhileIdle;
    private Long timeBetweenEvictionRunsMillis;
    private Long minEvictableIdleTimeMillis;
    private String connectionInitSqls;
    private String filters;
    private String proxyFilters;
    private Boolean removeAbandoned;
    private Integer removeAbandonedTimeout;
    private Boolean logAbandoned;
    private Boolean isPrimary;
    private Boolean isXa;
    private Boolean enableConfig;
    private String publicKey;
    private String connectionProperties;
    private String metaDataName;
}
